package com.rongc.client.freight.base.model;

import com.rongc.client.core.QuickApplication;
import com.rongc.client.core.utils.FileManager;
import com.rongc.client.core.LocalData;

/**
 * Created by Bruce on 2017/1/10.
 *
 */
public class UserBean extends LocalData {
    String token;  // token
    String userId;  // 用户id
    String phone;  // 手机号
    String level;  // 等级
    String balance;  // 余额
    String integral;  // 积分
    String head;  // 头像

    String email;  // 邮箱
    String nickname;  // 昵称
    String yqm;  // 邀请码

    String idcard;  // 身份证号
    String bankcard;  // 银行卡号

    String realname;  // 真实姓名
    String banktype;  // 银行名称
    String bankphone;  // 银行卡绑定手机号


    String type;  // 身份

    String countXD; // 下单次数
    String countJD; // 接单次数
    String countWY; // 违约次数

    String password; // 支付密码


    public static UserBean load() {
        return FileManager.loadData(QuickApplication.getInstance(), UserBean.class);
    }

    public static void clear() {
        FileManager.clearData(QuickApplication.getInstance(), UserBean.class);
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }


    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getYqm() {
        return yqm;
    }

    public void setYqm(String yqm) {
        this.yqm = yqm;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getBankcard() {
        return bankcard;
    }

    public void setBankcard(String bankcard) {
        this.bankcard = bankcard;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getBanktype() {
        return banktype;
    }

    public void setBanktype(String banktype) {
        this.banktype = banktype;
    }

    public String getBankphone() {
        return bankphone;
    }

    public void setBankphone(String bankphone) {
        this.bankphone = bankphone;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCountJD() {
        return countJD;
    }

    public void setCountJD(String countJD) {
        this.countJD = countJD;
    }

    public String getCountWY() {
        return countWY;
    }

    public void setCountWY(String countWY) {
        this.countWY = countWY;
    }

    public String getCountXD() {
        return countXD;
    }

    public void setCountXD(String countXD) {
        this.countXD = countXD;
    }

    public String getIntegral() {
        return integral;
    }

    public void setIntegral(String integral) {
        this.integral = integral;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
